package com.csdj.thread;

public class MyRunnable implements Runnable{
    int i = 0;
    @Override
    public void run() {
        Thread t = Thread.currentThread();
        String threadName = t.getName();
        for(;i<20;i++){
            System.out.println("当前线程名称："+threadName+"  编号："+i);
        }
    }
}
